package com.guigu.gulisearch.entity.dto;


import com.guigu.gulicommon.constant.enumes.serch.SortCondition;
import com.guigu.gulicommon.constant.enumes.ware.HasStock;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProductSearchDto implements Serializable {
    /**
     * 检索关键字
     */
    private String queryParam;
    /**
     * 三级分类ID
     */
    private Long thirdCatId;
    /**
     * 排序条件
     *
     * @see SortCondition#getName()
     */
    private SortCondition sort;
    /**
     * 是否显示有货
     *
     * @see HasStock#getName()
     */
    private HasStock hasStock;
    /**
     * 价格区间
     */
    private String skuPrice;

    /**
     * 品牌Id
     */
    private List<Long> brandId;

    /**
     * 属性
     */
    private ArrayList<String> attrs;


    private Long pageNum = 1L;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 10L;


}
